import './assets/material-design-iconic-font.min.css'
import './assets/style.min.css'
import 'element-plus/dist/index.css'
// vue-markdown import

// vue-markdown highlightjs
import hljs from 'highlight.js';
import 'highlight.js/styles/github.min.css' //样式

import {createApp} from 'vue'

import App from './App.vue'
import router from './router'

const app = createApp(App)
app.directive('highlight', function (el) {
    let blocks = el.querySelectorAll('pre code');
    blocks.forEach((block: any) => {
        hljs.highlightBlock(block)
    })
})
app.use(router)

app.mount('#app')
